package org.ghost.wechat.platform.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author Administrator
 */
@Data
@Component
@ConfigurationProperties(prefix = "redis")
@PropertySource(value = {"${spring.config.location}redis.properties"}, encoding = "UTF-8")
public class RedisProperties implements Serializable {
    private static final long serialVersionUID = 2214677677318574544L;
    private String host;

    private Integer port;

    private String pass;

    private Integer maxTotal;

    private Integer maxIdle;

    private Long maxWaitMillis;

    private Boolean testOnBorrow;

    private Boolean testOnReturn;

    private Integer timeout;

    private Boolean usePool;

    private Boolean keySerializer = false;
}
